package com.hxx.day6;

public class TestDemo {
    public static void main(String[] args) {
        AClass aClass = new AClass();
        Object show = aClass.show(new AInter() {
            @Override
            public Object callBack() {
                return null;
            }
        });
    }
}

interface AInter{
    Object callBack();
}

//匿名实现
class AClass {

    public Object show(AInter aInter){
        return aInter.callBack();
    }
}



















